<template>
  <el-container style="height: 600px; border: 1px solid #eee">
    <el-aside width="210px" style="background-color: rgb(238, 241, 246)">
      <el-menu :default-openeds="['1','2', '3']"
                router>

        <el-sub-menu index="1">
          <template #title>
            <el-icon><userFilled /></el-icon>用户详情
          </template>
          <el-menu-item-group>
            <template #title>分组1</template>
            <el-menu-item index="/Index/User/userdata">用户表</el-menu-item>
          </el-menu-item-group>
        </el-sub-menu>

        <el-sub-menu index="2">
          <template #title>
            <el-icon><notebook /></el-icon>工作人类详情
          </template>

          <el-menu-item-group>
            <template #title>分组2</template>
            <el-menu-item index="/Index/User/staffdata">工作人员表</el-menu-item>
          </el-menu-item-group>
        </el-sub-menu>

      </el-menu>
    </el-aside>

    <router-view></router-view>

  </el-container>
</template>

<script>
import { defineComponent } from 'vue'
import { UserFilled,Notebook } from '@element-plus/icons-vue'

export default defineComponent({
  components: {
    UserFilled,
    Notebook,
  },
  setup() {

  },
})
</script>

<style>
.el-header {
  background-color: #b3c0d1;
  color: var(--el-text-color-primary);
  line-height: 60px;
}


 .el-menu-item.is-active{
   background-color: #C6E2FF !important;
   border-bottom-color:#409EFF!important;
   color:black !important;
}


.el-aside {
  color: var(--el-text-color-primary);
}
</style>